import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

import com.su.invoke.Fathor;
import com.su.invoke.Son;

public class Main {
	private int age;

	public static void main(String[] args)  {
		try {
			Class<?> forName = Class.forName("com.su.invoke.Fathor");
			Field declaredField = forName.getDeclaredField("age");
			declaredField.setAccessible(true);
			Fathor fathor = new Fathor();
			Object object = declaredField.get(fathor);
			System.out.println(object);
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (NoSuchFieldException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (SecurityException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalArgumentException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
}
